package com.dubito.dose.feature.home.usecase

import com.dubito.dose.data.repository.MedicationRepository
import com.dubito.dose.domain.model.Medication
import javax.inject.Inject
import kotlinx.coroutines.flow.Flow

/**
 * author: LiLiang
 * createTime: 2022/9/13-16:32
 * remark:
 **/
class GetMedicationsUseCase @Inject constructor(
    private val medicationRepository: MedicationRepository
) {

    fun getMedications(): Flow<List<Medication>> {
        return medicationRepository.getAllMedications()
    }
}